home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / mlib / include / mstgrid.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-13  |  951 b   |  28 lines

  1.  
  2. #ifndef __MSTGRID_H
  3. #define __MSTGRID_H
  4.  
  5. class MStGrid : public MWindow {
  6. protected:
  7.     WORD                     Length;
  8.     WORD                     Width;
  9.     WORD                     CellLength;
  10.     WORD                     CellWidth;
  11. public:
  12.                  MStGrid (int x1, int y1, int x2, int y2,
  13.                       WORD TheLength, WORD TheWidth,
  14.                       WORD AHandle, WORD AnHParent = HROOT);
  15.                  MStGrid (const RECT& ABox, WORD TheLength, 
  16.                                       WORD TheWidth, WORD AHandle,
  17.                       WORD AnHParent = HROOT);
  18.     virtual void             LoadDirect (int fp);
  19.     virtual void             SaveDirect (int fp);
  20.     virtual inline void      WhichCell (int x, int y, POINT& cell);
  21.     virtual void             SetCellSize (WORD length, WORD width);
  22.     virtual void             Draw (int cx, int cy) = 0;
  23.     virtual WORD             Handler (EVENT event) = 0;
  24.                 ~MStGrid (void);
  25. };
  26.  
  27. #endif
  28.